package com.kd.user.service;

import com.github.pagehelper.PageInfo;
import com.kd.user.entity.User;
import com.kd.user.entity.UserCondition;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

    public User queryByKey(String id);
    public boolean removeUser(String id);
    public PageInfo<User> queryAllUser(int pageNum,int pageSize);
    public PageInfo<User> queryUserByCondition(UserCondition condition,int pageNum,int pageSize);
    public boolean updateById(User user);
    public boolean addUser(User user);
}
